<?php
function getAllProduct()
{
	require_once("../includes/public.inc.php");
	$pro = mysql_query('select * from '.DBQIAN.'product');
	return $pro;
}

function getProductDetail($id)
{
	require_once("../includes/public.inc.php");
	$pro = mysql_query('select * from '.DBQIAN.'product where id ='.$id);
	$row = mysql_fetch_array($pro);
	return $row;
}

function getProductByKeyword($keyword)
{
	require_once("../includes/public.inc.php");
	$pro = mysql_query('select * from '.DBQIAN.'product where name like \'%'.$keyword.'%\'');
	return $pro;
}

